<div class="maintop">
	当前位置：添加商品分类
	<a href="javascript:;" action="<?=$basepath?>" class="mainFrame button">返回</a>
	<a href="javascript:;" action="<?=$basepath?>_add" class="mainFrame button">刷新</a>
</div>
<div class="main-search">
</div>
<div id="mainbody">
	<div class="main">
		<div class="info">
				<form name="category_add_save" action="<?=$basepath?>_add_save" method="POST" target="ajax" func="form_submit">
					<div style="display:none;" class="hiddencontentdiv"><textarea id="hiddencontent" name="hiddencontent"></textarea></div>
					<dl><dt>分类名称：</dt><dd><input type="text" name="title" class="wtxt" /></dd></dl>
					<dl><dt>副标题：</dt><dd><input type="text" name="subtitle" class="wtxt" /></dd></dl>
					<dl><dt>上级分类：</dt><dd><select type="text" name="parentid">
						<option value="0" select="selected">主分类</option>
						<?php
							if($parentcategory){
								foreach($parentcategory as $k=>$v){
									echo '<option value="',$v['id'],'">',$v['title'],'</option>';	
								}
							}
						?>
					</select></dd></dl>
					<dl><dt>分类图标：</dt><dd><input type="text" name="icon" id="icon" class="wtxt" value="#" /></dd><dd><input type="button" name="uploadbutton" id="uploadbutton" value="选择" /></dd></dl>
					<dl><dt>背景色：</dt><dd><input type="color" name="bgcolor" class="mint" value="#DDDDDD" /></dd><dt>文字色：</dt><dd><input type="color" name="txtcolor" class="mint" value="#1e1e1e" /></dd></dl>
					<dl><dt>链接地址：</dt><dd><input type="text" name="url" class="wtxt" value="#" /></dd><dd class="t">不为空时，系统将直接链接到此址</dd></dl>
					<dl><dt>分类排序：</dt><dd><input type="text" name="sort" class="mint" value="<?=$maxsort ?>" /></dd><dd class="t">按0,1,2,3的顺序排序</dd></dl>
					<dl><dt>分类状态：</dt><dd><select name="state">
						<option value="0" selected>禁用</option>
						<option value="1">启用</option>
					</select></dd></dl>
					<dl><dt>&nbsp;</dt><dd>
							<input type="submit" value="确认" class="btnbig" />
							<a href="javascript:;" action="<?=$basepath?>" class="mainFrame btnbig">返回</a>
					</dd></dl>
				</form>
		</div>
	</div>
</div>
<? $this->display('editor',array('textareaid'=>'hiddencontent','uploadbutton'=>'uploadbutton','inputid'=>'icon')); ?>
